package com.example.pandaso.pojo;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

public class SogSearchResult {
    @JsonProperty("errorcode")
    private int errorCode;
    @JsonProperty("ext")
    private String ext;
    @JsonProperty("query")
    private String query;
    @JsonProperty("result")
    private List<ResultItem> result;
    @JsonProperty("src")
    private String src;
    @JsonProperty("ssid")
    private String ssid;
    @JsonProperty("version")
    private String version;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public List<ResultItem> getResult() {
        return result;
    }

    public void setResult(List<ResultItem> result) {
        this.result = result;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getSsid() {
        return ssid;
    }

    public void setSsid(String ssid) {
        this.ssid = ssid;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public static class ResultItem {
        @JsonProperty("word")
        private String word;

        public String getWord() {
            return word;
        }

        public void setWord(String word) {
            this.word = word;
        }

    }
}
